package cn.northsea.service.impl;

import cn.northsea.mapper.SaleMapper;
import cn.northsea.pojo.WarehouseProduct;
import cn.northsea.service.SaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleServiceImpl implements SaleService {

    @Autowired
    private SaleMapper saleMapper;

    @Override
    public List<WarehouseProduct> findWarehouseProductByPid(Integer productId) {
        return saleMapper.findWarehouseProductByPid(productId);
    }

    @Override
    public void update(Integer productId, Integer zNum,Integer warehouseId) {
        saleMapper.update(productId, zNum,warehouseId);
    }
}
